package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.ArrayList;
import java.util.List;

/**
 * @author dlophin2021414@163.com
 * @date 2021年12月06日 21:33
 */
@FeignClient("gulimall-ware")
public  interface WareFeignService{
    /**
     *
     * @param skuIds
     * @return
     */

    @PostMapping("/ware/waresku/hasStock")
    public R getSkuHasStock(@RequestBody List<Long> skuIds);

   /* @PostMapping("/ware/waresku/hasStock")
     R getSkuHasStock(@RequestBody List<Long> skuIds);*/
}